"use strict";
/**
 * @description 标签
 * @author jacinto
 */
module.exports = (app) => {
    const { INTEGER, STRING, BOOLEAN } = app.Sequelize;

    const PosFolder = app.model.define("pos_tag", {
        id: {
            type: INTEGER,
            primaryKey: true,
            autoIncrement: true,
            comment: "主键id，自增",
          },
          tagName: {
            type: STRING(30),
            allowNull: false,
            comment: "标签名称",
          },
          status: {
            type: BOOLEAN,
            defaultValue: true,
            comment: "状态 true：有效  false：冻结",
          },
          type: {
            type: INTEGER,
            comment: "类型 1：产品 2：案例 3：资讯",
          },
          sort: {
            type: INTEGER,
            comment: '排序'
          },
    });

    return PosFolder;
};
